package com.zhuiyun.project.api.teacherReservation.mapper;

import com.zhuiyun.project.api.plan.fitnessAction.entity.FitnessAction;
import com.zhuiyun.project.api.plan.fitnessPlan.model.FitnessPlanModel;
import com.zhuiyun.project.api.plan.fitnessPlanAction.entity.FitnessPlanAction;
import com.zhuiyun.project.api.plan.fitnessPlanAction.model.FitnessPlanActionModel;
import com.zhuiyun.project.api.teacherReservation.model.*;
import com.zhuiyun.project.common.response.CommonResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * @InterfaceName TeacherReservationMapper
 * @Description TODO
 * @Author wuwan
 * @Date 2023/11/14 10:22
 **/
@Mapper
public interface TeacherReservationMapper {
    /*
    * @Author wuwan
    * @Description 查询学员预约信息
    * @Date 2023/11/16 8:42
    * @Return
    */
    List<ReservationModel> getReservation(Integer coachId,String reservationStatus,String reservationTime);
    /*
    * @Author wuwan
    * @Description 开始训练方法
    * @Date 2023/11/16 9:09
    * @Return
    */
    Integer upReservationStatusOne(Integer id);
    /*
    * @Author wuwan
    * @Description 结束训练方法
    * @Date 2023/11/16 9:09
    * @Return
    */
    Integer upReservationStatusTwo(Integer id);
    /*
    * @Author wuwan
    * @Description 修改预约课程信息 如调整预约时间 调整课程安排
    * @Date 2023/11/17 10:11
    * @Return
    */
    Integer updateReservation(UpdateReservationModel updateReservationModel);
    /*
    * @Author wuwan
    * @Description 登录时查询用户是否存在
    * @Date 2023/11/23 13:58
    * @Return
    */
    CoachLoginModel getCoachName(String coachPhone);
    /*
    * @Author wuwan
    * @Description 根据计划id查询计划绑定的动作
    * @Date 2023/11/23 13:59
    * @Return
    */
    List<FitnessPlanActionModel> selectPlanAction(Integer id);
    /*
    * @Author wuwan
    * @Description 查询出计划id
    * @Date 2023/11/23 13:59
    * @Return
    */
    FitnessPlanModel selectUserPlan(Integer userId);
    // 查询出所有动作  动作下拉框
    List<FitnessActionModel> selectAction();
    /*
    * @Author wuwan
    * @Description 修改计划中的动作内容（更换动作）
    * @Date 2023/11/23 13:59
    * @Return
    */
    Integer updatePlanAction(PlanActionModel planActionModel);

    Integer upTims(Integer tid);
}
